#! /bin/bash
export LANG=en_US.UTF-8

Port=
PID=

PID=`echo "$1"|sed 's/\(.*\):\(.*\)/\1/g'`
Port=`echo $1|sed 's/\(.*\):\(.*\)/\2/g'`
if [[ "$PID" != "" && "$Port" != "" ]];then
	netstat -anp|grep "$PID"|grep "$Port"|grep "$LISTEN"
fi
